package com.zysc.processflow.pojo;

import com.zysc.processflow.entity.Organization;
import com.zysc.processflow.entity.Person;
import lombok.Data;

import java.util.List;

@Data
public class ProcessConfig {
    private String id;
    private String name;
    private String processno;
    private String description;
    private String type;
    private List<NodeConfig> nodeList;
    private List<LineConfig> lineList;
    @Data
    public static class NodeConfig {
        public String id;
        public String name;
        public String type;
        public String left;
        public String top;
        public String ico;
        public String state;
        public String businesstype;
        public List<Organization> orginfo;
        public List<Person>  perinfo;
        public String roleid;
        public String rolename;
        public String needsendmsg;
        public String custom;
    }
    @Data
    public static class LineConfig {
        public String from;
        public String to;
        public String label;
        public String connector;
        public String anchors;
        public String paintStyle;
        public String conditionvalue;
        public String conditiontype;
    }
}